package com.qdd.freight.enums;

/**
 * @Author
 * @Description 缓存key配置枚举类，expireTime为过期时间单位为秒 -1为没有时间限制
 * @Date 18:19 2019/12/27
 * @Param
 * @return
 * @throws
 **/

public enum CacheKeyEnum {
    PDA_TOKEN_KEY("PDA_TOKEN_KEY:", 60 * 60 * 24 * 16L),
    PUBLIC_KEY("PUBLIC_KEY", 60 * 60 * 24 * 16L),
    PRIVATE_KEY("PRIVATE_KEY", 60 * 60 * 24 * 16L),
    ;
    private String cacheKey;
    private Long expireTime;

    CacheKeyEnum(String cacheKey, Long expireTime) {
        this.cacheKey = cacheKey;
        this.expireTime = expireTime;
    }

    public String getCacheKey() {
        return cacheKey;
    }

    public Long getExpireTime() {
        return expireTime;
    }
}
